home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / C ++ / Applications / ScriptExplorer / CLG_CharsGrid.h < prev    next >
Encoding:
Text File  |  1997-07-23  |  1.1 KB  |  62 lines  |  [TEXT/CWIE]

  1. // CLG_CharsGrid.h
  2.  
  3. #pragma once
  4.  
  5. #include <LView.h>
  6.  
  7. //****************************************************
  8. #define kcgVOffset        02
  9. #define kcgHOffset        22    
  10. #define kcgHSpacing        22
  11. #define kcgVSpacing        17
  12.  
  13.  
  14. // Script Mgr actions as enum
  15. enum {
  16.         saNoChange = 1,
  17.         saUppercase,
  18.         saLowercase,
  19.         saStripDiacritical,
  20.         saUpperStripDiacritical
  21. };
  22.  
  23.  
  24. //****************************************************
  25. class    CLG_CharsGrid : public LPane {
  26. public:
  27.     enum { class_ID = 'Cchg' };
  28.     static CLG_CharsGrid*    CreateDisplayStream(
  29.                     LStream            *inStream);
  30.     
  31.  
  32.     CLG_CharsGrid( void);
  33.     CLG_CharsGrid( LStream *inStream);
  34.  
  35.     void    Init(void);
  36.     void    FillCodePts(void);
  37.     void    ClickSelf(const SMouseDownEvent &inMouseDown);
  38.     void    AdjustCursorSelf(Point inPortPt,
  39.                                     const EventRecord &inMacEvent);
  40.  
  41.     void    DrawSelf();    
  42.     void     DoChangeChars(void);
  43.     void     DoPageUp(void);
  44.     void     DoPageDown(void);
  45.     
  46.     //---------------------------------
  47.     short                mFontNum;
  48.     short                mFontSiz;
  49.     
  50.     unsigned char        mBaseChar;        
  51.     unsigned short        mCodePts[ 256];
  52.     unsigned short        mChars[ 256];
  53.  
  54.     long                mCurScriptNum;    
  55.     short                mScriptAction;
  56.     
  57.  
  58. protected:
  59.  
  60. };
  61.  
  62.